home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1999 March
/
CHIP Turkiye Mart 1999.iso
/
101
/
registery
/
regrepair 2000 33
/
form1.frm
< prev
next >
Wrap
Text File
|
1999-01-14
|
11KB
|
349 lines
VERSION 5.00
Begin VB.Form Form1
Caption = "RegRepair 2000"
ClientHeight = 4590
ClientLeft = 60
ClientTop = 405
ClientWidth = 4605
ClipControls = 0 'False
ControlBox = 0 'False
Icon = "Form1.frx":0000
LinkTopic = "Form1"
ScaleHeight = 4590
ScaleWidth = 4605
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Visible = 0 'False
Begin VB.TextBox Text1
Height = 285
Left = 2160
TabIndex = 8
Top = 2640
Width = 375
End
Begin VB.CheckBox Check1
BackColor = &H00000000&
Caption = "Use Scandisk automaticlly if Windows did not shut down properly"
ForeColor = &H00000080&
Height = 375
Left = 360
TabIndex = 6
Top = 720
Width = 3855
End
Begin VB.CheckBox Check2
BackColor = &H00000000&
Caption = "This computer is on a network or Dial - Up Network"
ForeColor = &H00000080&
Height = 615
Left = 360
TabIndex = 5
Top = 1080
Width = 3855
End
Begin VB.CheckBox Check3
BackColor = &H00000000&
Caption = "Show Splash Screen while booting up"
ForeColor = &H00000080&
Height = 375
Left = 360
TabIndex = 4
Top = 1680
Width = 3855
End
Begin VB.CheckBox Check4
BackColor = &H00000000&
Caption = "Boot to a C prompt instead of Windows"
ForeColor = &H00000080&
Height = 375
Left = 360
TabIndex = 3
Top = 2160
Width = 3855
End
Begin VB.CheckBox Check5
BackColor = &H00000000&
Caption = "Show Boot Menu for "
ForeColor = &H00000080&
Height = 375
Left = 360
TabIndex = 2
Top = 2640
Width = 1815
End
Begin VB.CheckBox Check6
BackColor = &H00000000&
Caption = "Enable Function Keys while booting"
ForeColor = &H00000080&
Height = 375
Left = 360
TabIndex = 1
Top = 3120
Width = 3735
End
Begin VB.Label Command1
Alignment = 2 'Center
BackColor = &H00FFFFFF&
BackStyle = 0 'Transparent
Caption = "Save These Settings"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 360
Left = 360
TabIndex = 12
Top = 4005
Width = 2175
End
Begin VB.Label Command2
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "Back"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 360
Left = 3195
TabIndex = 11
Top = 4005
Width = 945
End
Begin VB.Label Label4
BackColor = &H00000000&
BorderStyle = 1 'Fixed Single
Height = 615
Left = 240
TabIndex = 10
Top = 3840
Width = 4095
End
Begin VB.Label Label3
Alignment = 2 'Center
Caption = "Current Windows Boot Up Options"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000002&
Height = 255
Left = 120
TabIndex = 9
Top = 120
Width = 4335
End
Begin VB.Label Label1
BackColor = &H00000000&
Caption = "Seconds"
ForeColor = &H00000080&
Height = 255
Left = 2640
TabIndex = 7
Top = 2685
Width = 615
End
Begin VB.Label Label2
BackColor = &H00000000&
BorderStyle = 1 'Fixed Single
Height = 3135
Left = 120
TabIndex = 0
Top = 480
Width = 4335
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub MakeBlack()
Check1.BackColor = BLACK
Check2.BackColor = BLACK
Check3.BackColor = BLACK
Check4.BackColor = BLACK
Check5.BackColor = BLACK
Check6.BackColor = BLACK
Label1.BackColor = BLACK
Label2.BackColor = BLACK
End Sub
Public Sub MakeBlue()
Check1.BackColor = PALE_BLUE
Check2.BackColor = PALE_BLUE
Check3.BackColor = PALE_BLUE
Check4.BackColor = PALE_BLUE
Check5.BackColor = PALE_BLUE
Check6.BackColor = PALE_BLUE
Label1.BackColor = PALE_BLUE
Label2.BackColor = PALE_BLUE
End Sub
Private Sub Check1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MakeBlue
End Sub
Private Sub Check2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MakeBlue
End Sub
Private Sub Check3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MakeBlue
End Sub
Private Sub Check4_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MakeBlue
End Sub
Private Sub Check5_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MakeBlue
End Sub
Private Sub Check6_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MakeBlue
End Sub
Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MakeBlack
Command1.FontBold = True
Command2.FontBold = False
End Sub
Private Sub Command2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MakeBlack
Command2.FontBold = True
Command1.FontBold = False
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MakeBlack
Command1.FontBold = False
Command2.FontBold = False
End Sub
Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MakeBlue
Command1.FontBold = False
Command2.FontBold = False
End Sub
Private Sub Label2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MakeBlue
Command1.FontBold = False
Command2.FontBold = False
End Sub
Private Sub Label3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MakeBlack
Command1.FontBold = False
Command2.FontBold = False
End Sub
Private Sub Label4_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
MakeBlack
End Sub
Private Sub Command1_Click()
On Error Resume Next
SetAttr Drive & "Msdos.sys", 0
Me.MousePointer = 11
Stall 2
If Check1.Enabled = True Then
If Check1 = 1 Then Writeini Drive & "Msdos.sys", "Options", "Autoscan", "1"
If Check1 = 0 Then Writeini Drive & "Msdos.sys", "Options", "Autoscan", "0"
End If
If Check2 = 1 Then Writeini Drive & "Msdos.sys", "Options", "Network", "1"
If Check2 = 0 Then Writeini Drive & "Msdos.sys", "Options", "Network", "0"
If Check3 = 1 Then Writeini Drive & "Msdos.sys", "Options", "Logo", "1"
If Check3 = 0 Then Writeini Drive & "Msdos.sys", "Options", "Logo", "0"
If Check4 = 1 Then Writeini Drive & "Msdos.sys", "Options", "BootGUI", "0"
If Check4 = 0 Then Writeini Drive & "Msdos.sys", "Options", "BootGUI", "1"
If Check5 = 1 Then Writeini Drive & "Msdos.sys", "Options", "BootMenu", "1"
If Check5 = 0 Then Writeini Drive & "Msdos.sys", "Options", "BootMenu", "0"
If Check6 = 1 Then Writeini Drive & "Msdos.sys", "Options", "BootKeys", "1"
If Check6 = 0 Then Writeini Drive & "Msdos.sys", "Options", "Bootkeys", "0"
If (Len(Text1) > 2) Or (Text1 = "") Then Text1 = "10"
Writeini Drive & "Msdos.sys", "Options", "BootMenuDelay", Text1
Me.MousePointer = 0
MsgBox "The Bootup Setting have been saved!", 0, "RegRepair 2000"
Stall 1
SetAttr Drive & "Msdos.sys", 7
Form8.Visible = True
Unload Me
End Sub
Private Sub Command2_Click()
Form8.Visible = True
Unload Me
End Sub
Private Sub Form_Activate()
Dim K As Integer
Dim T As String
If ReadIni(Drive & "Msdos.sys", "Options", "Autoscan") = "1" Then
Check1 = 1
ElseIf ReadIni(Drive & "Msdos.sys", "Options", "Autoscan") = "0" Then
Check1 = 0
Else
T = ReadIni(CurDir & "\Basic.lib", "log", "Version")
If (T = "A") Or (T = "0") Or (T = "U") Then Check1.Enabled = False
End If
If ReadIni(Drive & "Msdos.sys", "Options", "Network") = "1" Then
Check2 = 1
Else
Check2 = 0
End If
If ReadIni(Drive & "Msdos.sys", "Options", "Logo") = "1" Then
Check3 = 1
Else
Check3 = 0
End If
If ReadIni(Drive & "Msdos.sys", "Options", "BootGUI") = "1" Then
Check4 = 0
Else
Check4 = 1
End If
If ReadIni(Drive & "Msdos.sys", "Options", "BootMenu") = "1" Then
Check5 = 1
Else
Check5 = 0
End If
Text1 = ReadIni(Drive & "Msdos.sys", "Options", "BootMenuDelay")
If ReadIni(Drive & "Msdos.sys", "Options", "BootKeys") = "1" Then
Check6 = 1
Else
Check6 = 0
End If
End Sub
Private Sub Form_Load()
Drive = ReadIni(App.Path & "\Basic.lib", "LOG", "Drive")
If Drive = "" Then Drive = GetSetting("RegRepair 2000", "Content", "Drive", "C:\")
End Sub
Private Sub Form_Unload(Cancel As Integer)
Form8.Visible = True
End Sub